﻿
using System;

namespace EveKillboard.Core
{
    using Base;
    using Interfaces;
    using System.ComponentModel.DataAnnotations;

    public class Corporation : EntityBase, ICorporation, IComparable
    {
        [ForeignKey("LastKnowParentId")]
        public virtual Alliance LastKnownAlliance { get; set; }

        [NotMapped]
        public override bool? IsStructure
        {
            get { return false; }
            set { }
        }

        public int CompareTo(object obj)
        {
            var corp = obj as Corporation;
            return corp != null ? corp.Id.CompareTo(Id) : 0;
        }
    }
}